<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xforms="http://www.w3.org/2002/xforms"
	xmlns:ev="http://www.w3.org/2001/xml-events"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<head>
	<title>Management Barang</title>
	<meta charset="UTF-8" />

	<xforms:model>
		<xforms:instance id="entity" src="./views/data/barang.xml" />
		<xforms:bind id="kodeBarang" nodeset="/barang/kodeBarang" />
		<xforms:bind id="namaBarang" nodeset="/barang/namaBarang" />
		<xforms:bind id="hargaBeli" nodeset="/barang/hargaBeli" />
		<xforms:bind id="hargaJual" nodeset="/barang/hargaJual" />
		<xforms:bind id="kodeSupplier" nodeset="/barang/kodeSupplier" />
		<xforms:bind id="merek" nodeset="/barang/merek" />
		<xforms:submission id="submit1" action="./service/index.php/barang" replace="none" method="post">
			<xforms:message level="modeless" ev:event="xforms-submit-done">Submit success.</xforms:message>
			<xforms:message level="modeless" ev:event="xforms-submit-error">Submit error.</xforms:message>
		</xforms:submission>
	</xforms:model>
	<link rel="stylesheet" href="styles/mobi_styles.css"/>
</head>
<body>
	<xforms:group>
		 <table>
			<tr>
				<td colspan="2">Kode Barang</td>
				<td><xforms:input id="kodeBarang1"  class="itemClass" bind="kodeBarang"/></td>
			</tr>
			<tr>
				<td colspan="2">Nama Barang</td>
				<td><xforms:input bind="namaBarang" /></td>
			</tr>
				<tr>
					<td colspan="2">Harga Beli</td>
					<td><xforms:input bind="hargaBeli" /></td>
				</tr>
			<tr>
				<td colspan="2">Harga Jual</td>
				<td><xforms:input bind="hargaJual" /></td>
			</tr>
			<tr>
				<td colspan="2">Kode Supplier</td>
				<td><xforms:input bind="kodeSupplier" /></td>
			</tr>
			<tr>
				<td colspan="2">Merek</td>
				<td><xforms:input bind="merek" /></td>
			</tr>
		</table>
	</xforms:group>
	<xforms:submit submission="submit1">
		<xforms:label>Simpan</xforms:label>
	</xforms:submit>
	
	<div id="stokTableListener">
		<table>
			<thead>
				<tr>
					<th>Kode Barang</th>
					<th>Nama Barang</th>
					<th>Harga Beli</th>
					<th>Harga Jual</th>
					<th>Kode Suplier</th>
					<th>Merek</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
		</table>
	</div>
</body>
</html>
